coinegg = ../bin/robotCoinegg
pros = robotCoinegg \
	configServer \
	custom \
	robotMonitor \
	binance \
	bitmart \
	quateGetter
prostaget = $(shell pwd)
.PHONY: all clean
all: ${prostaget}/../bin
	echo ${prostaget}
	for p in ${pros};do cd ${prostaget}/$$p && go build && cp $$p ${prostaget}/../bin/$$p ;done

${prostaget}/../bin:
	mkdir ${prostaget}/../bin

clean:
	rm ${prostaget}/../bin/* -rf
	for p in ${pros};do rm ${prostaget}/$$p/$$p -rf && rm ${prostaget}/$$p/*.exe -rf && rm ${prostaget}/$$p/*.tar -rf ;done
